package com.yourenbang.lingyun.transaction.mapper;

import com.yourenbang.lingyun.transaction.web.domain.dto.manage.ManageAllyActivateRewardDTO;
import com.yourenbang.lingyun.transaction.web.domain.vo.manage.ManageActivateRewardVO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface TransactionAllyActivateRewardMapper {

    /**
     * 管理后台返现关系查询
     * @return
     */
    List<ManageActivateRewardVO> queryActivateReward(ManageAllyActivateRewardDTO dto);

    /**
     * 管理后台返现关系查询（银小云）
     * @return
     */
    List<ManageActivateRewardVO> queryActivateRewardYxy(ManageAllyActivateRewardDTO dto);

    /**
     * 管理后台返现关系查询（银小云虚拟商户）
     * @return
     */
    List<ManageActivateRewardVO> merchantQueryActivateRewardYxy(ManageAllyActivateRewardDTO dto);

    /**
     * 查询用户待入账的激活返现
     */
    BigDecimal queryActivateRewardAmount(@Param("platNo") Short platNo,@Param("userBaseId") String userBaseId);

    /**
     * 查询用户待入账的收入
     */
    BigDecimal getUserToBeRecordAmount(@Param("platNo") Short platNo,@Param("userBaseId") String userBaseId);

}